wayland: scale cursors to the right size
authorMatthias Clasen <mclasen@redhat.com>
Fri, 27 May 2022 14:10:27 +0000 (10:10 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 27 May 2022 16:26:45 +0000 (12:26 -0400)
commit5507b3f8c1a330a6037df70d47abf1cd54774e5e
treeb9ddc18dafe24046fcd091ba7f6d1f18ac097d69
parent00d45c67433b97db91ac4edb34d02c25cf3db39a
wayland: scale cursors to the right size

When loading cursors at scale, we expect the
cursor images to have a size of scale * size.
If we don't find such images, load them at their
unscaled size and scale them up ourselves.

Without this, cursors will appear in unexpected
sizes depending on scales and themes.

Related: #4746
gdk/wayland/cursor/wayland-cursor.c